#!/bin/bash

echo "Chromify 1.5 :: Google Chrome WebApp Creator"
echo "    (Press Enter to continue or CTRL+C to Abort)"
read CONFIRM
echo "Installing Chromify..."
echo " "
echo "Unpacking chromify data, and installing to /usr..."
sudo cp __data/* /usr/ -R
echo "Creating chromify directory in HOME folder..."
sudo mkdir ${HOME}/.chromify
sudo chown ${USER}:${USER} ${HOME}/.chromify
echo "Making chromify executable..."
sudo chmod +x /usr/bin/chromify
echo "Creating default configuration file in /etc/chromify.conf..."
sudo cp /usr/share/chromify/chromify.conf.orig /etc/chromify.conf
echo "Moving default icon to /usr/share/pixmaps/chrome_32.png..."
sudo cp /usr/share/chromify/chrome_32.png /usr/share/pixmaps/chrome_32.png
echo " "
echo "Done!"
